repo: Disable uncompressed object cache on non-writable repos
authorColin Walters <walters@verbum.org>
Thu, 16 Oct 2014 18:54:34 +0000 (14:54 -0400)
committerColin Walters <walters@verbum.org>
Thu, 16 Oct 2014 18:54:34 +0000 (14:54 -0400)
commit884a9b27e91c728c5b25799e807129cd3fdf1ba4
tree76ea48187a66fb04c587583c9c169b9e4df1feff
parentd546abfa2a8c527d548b1be0ceea9c46d5faf2e3
repo: Disable uncompressed object cache on non-writable repos

While we did support disabling the uncompressed-objects-cache
per-repository:

1) We didn't actually respect that operation when doing
   CHECKOUT_MODE_USER on archive-z2 repositories
2) It'd be better to automatically detect we can't write to the
   repo and disable the uncompressed cache then.
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c